#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include <allheaders.h> // leptonica main header for image io
#include <baseapi.h> // tesseract main header
#include <memory>
#include <stdlib.h>
using namespace cv;
using namespace std;

std::vector<Rect> getCandidateBox(Mat src);
void boxImageProcessing(Mat &src);
void tesserInit(tesseract::TessBaseAPI &tess);
void sortRect(std::vector<Rect> &boxes);
static bool rectSortFun( Rect elem1, Rect elem2 )  ;
